summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx b/app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx
index cf0bf02e..194449a7 100644
--- a/app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx
+++ b/app/[lng]/evcp/(evcp)/docu-list-rule/combo-box-settings/page.tsx
@@ -1,23 +1,23 @@
import * as React from "react";
+import { type SearchParams } from "@/types/table";
import { Shell } from "@/components/shell";
import { Skeleton } from "@/components/ui/skeleton";
import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton";
import { getComboBoxCodeGroups } from "@/lib/docu-list-rule/combo-box-settings/service";
import { ComboBoxSettingsTable } from "@/lib/docu-list-rule/combo-box-settings/table/combo-box-settings-table";
+import { searchParamsComboBoxSettingsCache } from "@/lib/docu-list-rule/combo-box-settings/validation";
import { InformationButton } from "@/components/information/information-button";
-import { searchParamsCodeGroupsCache } from "@/lib/docu-list-rule/code-groups/validation";
interface IndexPageProps {
- searchParams: Promise<any>;
+ searchParams: Promise<SearchParams>;
}
export default async function IndexPage(props: IndexPageProps) {
const searchParams = await props.searchParams;
+ const search = searchParamsComboBoxSettingsCache.parse(searchParams);
const promises = Promise.all([
- getComboBoxCodeGroups(
- searchParamsCodeGroupsCache.parse(searchParams)
- ),
+ getComboBoxCodeGroups(search),
]);
return (